import request from '@/utils/request'

// 查询报工记录列表
export function listReport(query) {
  return request({
    url: '/process/report/list',
    method: 'get',
    params: query
  })
}

// 查询报工记录详细
export function getReport(processId) {
  return request({
    url: '/process/report/' + processId,
    method: 'get'
  })
}

// 新增报工记录
export function addReport(data) {
  return request({
    url: '/process/report',
    method: 'post',
    data: data
  })
}

// 修改报工记录
export function updateReport(data) {
  return request({
    url: '/process/report',
    method: 'put',
    data: data
  })
}

// 删除报工记录
export function delReport(processId) {
  return request({
    url: '/process/report/' + processId,
    method: 'delete'
  })
}
